/**
 * 
 */
package com.witframework.baseapp.common.enterprise;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.javalid.annotations.core.ValidateDefinition;
import org.springmodules.validation.bean.conf.loader.annotation.handler.Length;

import com.witframework.core.annotations.Wit;

/**
 * The Organization Info Tab is used to deﬁne an Organization’s address, Tax Identiﬁcation number.
 * 
 * @author wuxinyang Jun 18, 2009 2:25:40 PM
 */

@Entity @Table(name = "AD_ORGINFO")
@Wit(cnname = "组织信息", description = "组织机构的附加信息")@ValidateDefinition
public class OrganizationInformation {
	
	private String id ;
	/**
	 * The Location / Address ﬁeld deﬁnes the location of an entit
	 */	
	@Wit(cnname = "所在地", description = "组织所在地国家/省市")
	private String c_location_id;
	/**
	 * The Tax ID ﬁeld identiﬁes the legal Identiﬁcation number of this Entity
	 */	
	@Wit(cnname = "纳税号", description = "企业的纳税号")
	private String taxid;	
	@Wit(cnname = "LOGO",description = "企业的LOGO")
	private String logo;
	
	
	private Organization organization;
	
	@Column(length=32)@Id
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}	
	
	@OneToOne(optional = false, cascade = CascadeType.ALL)  
	public Organization getOrganization() {
		return organization;
	}
	public void setOrganization(Organization organization) {
		this.organization = organization;
	}
	@Column(length = 32)@Length(max = 32)
	public String getC_location_id() {
		return c_location_id;
	}
	public void setC_location_id(String c_location_id) {
		this.c_location_id = c_location_id;
	}

	
	@Column(length = 20)@Length(max = 20)
	public String getTaxid() {
		return taxid;
	}
	public void setTaxid(String taxid) {
		this.taxid = taxid;
	}

	
	@Column(length = 200)@Length(max = 200)
	public String getLogo() {
		return logo;
	}
	public void setLogo(String logo) {
		this.logo = logo;
	}
	

}
